// P/Invoke seems slightly faster than com interop in the emulator.  These are the methods that are called in the render loop

//#pragma comment (lib, "ddraw.lib")
#include "ddraw.h"
extern "C" {

	__declspec(dllexport) HRESULT _stdcall  Blt(void* destSurface, LPRECT dest, void* sourceSurface, LPRECT src, DWORD flags, LPDDBLTFX fx);
	__declspec(dllexport) HRESULT _stdcall  Flip(void* surface, DWORD flags);
	__declspec(dllexport) HRESULT _stdcall	Fill(void* surface, DWORD color);
	__declspec(dllexport)HRESULT _stdcall LoopIt(DWORD x);
}